import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class RouteMiddleWare extends GetMiddleware {
  @override
  RouteSettings? redirect(String? route) {
    // return null;//不做操作

    //判断是否登录,如果未登录,跳转登录页面
    return const RouteSettings(
        name: '/login', arguments: {"params": "我是中间件传递过来的参数"});
  }
}
